<?php
declare(strict_types=1);

namespace App\Enums;


class GroupEnum
{
    const AUDIT_STATUS_WAIT = "wait";
    const AUDIT_STATUS_REJECT = "reject";
    const AUDIT_STATUS_AGREE = "agree";

    const CARD_AUDIT_STATUS_WAIT = "wait";
    const CARD_AUDIT_STATUS_REJECT = "reject";
    const CARD_AUDIT_STATUS_AGREE = "agree";


    /*
     * 群成员角色
     */
    const ROLE_MEMBER = 0; // 群员
    const ROLE_MANAGER = 1; // 管理
    const ROLE_OWNER = 2; // 群主

    /**
     * 内容类型
     */
    const MESSAGE_TYPE_TEXT = "text";
    const MESSAGE_TYPE_IMAGE = "image";
    const MESSAGE_TYPE_AUDIO = "audio";
    const MESSAGE_TYPE_VIDEO = "video";
    const MESSAGE_TYPE_BULLETIN = "bulletin";
    const MESSAGE_TYPE_GIFT = "gift";
    const MESSAGE_TYPE_POSITION = "position";
    const MESSAGE_TYPE_SHARE_ROOM = "share-room";
    const MESSAGE_TYPE_SHARE_CARD = "share-card";
    const MESSAGE_TYPE_NOTIFY = "notify";

    /**
     * 上下文类型
     */
    const CONTEXT_TYPE_TEXT = 1;
    const CONTEXT_TYPE_AT = 2;
    const MEDIA_TYPE_IMAGE = 1; // 图片类型
    const MEDIA_TYPE_AUDIO = 2; // 音频类型
    const MEDIA_TYPE_VIDEO = 3; // 视频类型

    /**
     * 派对
     */
    const PARTY_STATUS_WAIT = "wait"; // 等待状态
    const PARTY_STATUS_START = "start"; // 开始状态
    const PARTY_STATUS_END = "end"; // 结束状态(人满)
    const PARTY_STATUS_CANCEL = "cancel"; // 手动取消

    const PARTY_REPLY_STATUS_WAIT = "wait"; // 申请等待状态
    const PARTY_REPLY_STATUS_AGREE = "agree"; // 申请同意状态
    const PARTY_REPLY_STATUS_REJECT = "reject"; // 申请拒绝状态

    const GROUP_CATEGORY_TYPE_CITY = "city"; // 申请同意状态
    const GROUP_CATEGORY_TYPE_FRIEND= "friend"; // 申请拒绝状态

    const PARTY_ROLE_OWNER = 1;
    const PARTY_ROLE_MEMBER = 0;

    const FRIEND_DEFAULT_AVATAR = "https://xinban-pro.oss-cn-hangzhou.aliyuncs.com/avatar/default.png";
}
